<div id="bannertop"><? echo modules::run('banner/banner/top');?></div>
<!------ sp ------->
<div class="tuvan"> 
    <!------ sp-left -------->
    <div class="tuvan-left">
        <?php
		$k=1;
		foreach($list as $row)
		{
		?>
			<div class="item">
				<h2 class="item-title"><a href="<?=site.'tuvan/detail/'.$row->id.'/'.kodau($row->name).'.html'?>"><?php echo $k++;?>. <?php echo $row->name?> </a></h2>
				<div class="item-content" style="margin-left:20px">
					<?=truncate($row->content,400)?>
				</div>
			</div>
		<?php }?>
        <!--<div class="tuvan_cont_line"></div>-->
        <div class="lienhe tuvan_cont" style="width:500px; margin-top:20px;"><?php $this->load->view('form');?></div>
    </div>
    <!---end sp-left -----> 
    <!------ sp-right --------->
    <div class="tuvan-right">
        <?php echo modules::run('banner/banner/right');?>
    </div>
    <!---- end sp-right------>
    <div class="clear"></div>
</div>
<!--- end sp -----> 
<script type="text/javascript">
$(document).ready(function(){
	$("#frmcontacts_tuvan").validate({
        rules: {
            cusmail: {
				required:true,
				email:true
			},
			noidung:"required",
        },
        messages: {
			cusmail: {
				required:"Vui lòng nhập nội dung email.",
				email:"Email không đúng định dạng."
			},
			noidung: "Vui lòng nhập nội dung câu hỏi vào.",
			//lb_image:{validateImage:"File ảnh không hợp lệ!",}
        }
    });

});
</script>